package com.example.iot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName device_archives
 */
@TableName(value ="device_archives")
public class DeviceArchives implements Serializable {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 设备标识
     */
    private String deviceid;

    /**
     * 设备名称
     */
    private String devicename;

    /**
     * 运营状态
     */
    private String state;

    /**
     * 设备SN号
     */
    private String devsn;

    /**
     * 合同类型
     */
    private String contracttype;

    /**
     * 所属产品
     */
    private String product;

    /**
     * 设备密码
     */
    private String password;

    /**
     * 补丁版本
     */
    private String pathupgradeversion;

    /**
     * app版本
     */
    private String appupgradeversion;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 设备标识
     */
    public String getDeviceid() {
        return deviceid;
    }

    /**
     * 设备标识
     */
    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    /**
     * 设备名称
     */
    public String getDevicename() {
        return devicename;
    }

    /**
     * 设备名称
     */
    public void setDevicename(String devicename) {
        this.devicename = devicename;
    }

    /**
     * 运营状态
     */
    public String getState() {
        return state;
    }

    /**
     * 运营状态
     */
    public void setState(String state) {
        this.state = state;
    }

    /**
     * 设备SN号
     */
    public String getDevsn() {
        return devsn;
    }

    /**
     * 设备SN号
     */
    public void setDevsn(String devsn) {
        this.devsn = devsn;
    }

    /**
     * 合同类型
     */
    public String getContracttype() {
        return contracttype;
    }

    /**
     * 合同类型
     */
    public void setContracttype(String contracttype) {
        this.contracttype = contracttype;
    }

    /**
     * 所属产品
     */
    public String getProduct() {
        return product;
    }

    /**
     * 所属产品
     */
    public void setProduct(String product) {
        this.product = product;
    }

    /**
     * 设备密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设备密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 补丁版本
     */
    public String getPathupgradeversion() {
        return pathupgradeversion;
    }

    /**
     * 补丁版本
     */
    public void setPathupgradeversion(String pathupgradeversion) {
        this.pathupgradeversion = pathupgradeversion;
    }

    /**
     * app版本
     */
    public String getAppupgradeversion() {
        return appupgradeversion;
    }

    /**
     * app版本
     */
    public void setAppupgradeversion(String appupgradeversion) {
        this.appupgradeversion = appupgradeversion;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeviceArchives other = (DeviceArchives) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeviceid() == null ? other.getDeviceid() == null : this.getDeviceid().equals(other.getDeviceid()))
            && (this.getDevicename() == null ? other.getDevicename() == null : this.getDevicename().equals(other.getDevicename()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getDevsn() == null ? other.getDevsn() == null : this.getDevsn().equals(other.getDevsn()))
            && (this.getContracttype() == null ? other.getContracttype() == null : this.getContracttype().equals(other.getContracttype()))
            && (this.getProduct() == null ? other.getProduct() == null : this.getProduct().equals(other.getProduct()))
            && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
            && (this.getPathupgradeversion() == null ? other.getPathupgradeversion() == null : this.getPathupgradeversion().equals(other.getPathupgradeversion()))
            && (this.getAppupgradeversion() == null ? other.getAppupgradeversion() == null : this.getAppupgradeversion().equals(other.getAppupgradeversion()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeviceid() == null) ? 0 : getDeviceid().hashCode());
        result = prime * result + ((getDevicename() == null) ? 0 : getDevicename().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getDevsn() == null) ? 0 : getDevsn().hashCode());
        result = prime * result + ((getContracttype() == null) ? 0 : getContracttype().hashCode());
        result = prime * result + ((getProduct() == null) ? 0 : getProduct().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getPathupgradeversion() == null) ? 0 : getPathupgradeversion().hashCode());
        result = prime * result + ((getAppupgradeversion() == null) ? 0 : getAppupgradeversion().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deviceid=").append(deviceid);
        sb.append(", devicename=").append(devicename);
        sb.append(", state=").append(state);
        sb.append(", devsn=").append(devsn);
        sb.append(", contracttype=").append(contracttype);
        sb.append(", product=").append(product);
        sb.append(", password=").append(password);
        sb.append(", pathupgradeversion=").append(pathupgradeversion);
        sb.append(", appupgradeversion=").append(appupgradeversion);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}